#!/bin/sh

# 安装基础软件
sudo apt install -y fcitx5 fcitx5-chinese-addons

# 切换到家目录
cd ~/

# 创建词库存储目录
mkdir -p  ~/.local/share/fcitx5/pinyin/dictionaries/

# 下载词库
wget https://blog.image.codedemo.vip/UbuntuDesktop2204/zhwiki-20210722.dict.zip

# 解压词库
unzip ~/zhwiki-20210722.dict.zip

# 将词库文件移动到存储目录
cp ~/zhwiki-20210722.dict ~/.local/share/fcitx5/pinyin/dictionaries/

# 下载主题
wget https://blog.image.codedemo.vip/UbuntuDesktop2204/fcitx5-simple-themes.zip

# 解压主题
unzip ~/fcitx5-simple-themes.zip

# 将主题文件移动到主题存放目录
mv ~/Simple-dark ~/.local/share/fcitx5/themes
mv ~/Simple-white ~/.local/share/fcitx5/themes
